import http from "@/utils/request"

export default {

    getUserData() {
        return http.get('/admin/stat/userData')
    },
    getTableData() {
        return http.get('/admin/stat/tableData')
    },
    getVideoData() {
        return http.get('/admin/stat/videoData')
    },
    getOrderData() {
        return http.get('/admin/stat/orderData')
    },
    getDailyOrder() {
        return http.get('/admin/stat/daily/order')
    },
    getSalesToday() {
        return http.get('/admin/stat/daily/sale')
    },
    getTodayNewProductsCount() {
        return http.get('/admin/stat/daily/new')
    },
    getMonthOrder() {
        return http.get('/admin/stat/month/order')
    },
    getSalesMonth() {
        return http.get('/admin/stat/month/sale')
    },
    getMonthNewProductsCount() {
        return http.get('/admin/stat/month/new')
    },
    getSaleData() {
        return http.get('/admin/stat/saleData')
    },
    /**
     * 获取分类数据
     * @returns {Promise<axios.AxiosResponse<any>>}
     */
    getCategoryData() {
        return http.get('/admin/stat/category')
    },
    /**
     * 获取每月交易量
     * @returns {Promise<axios.AxiosResponse<any>>}
     */
    getMonthlyDeal() {
        return http.get('/admin/stat/monthlyDeal')
    },
    /**
     * 获取每周交易量
     * @returns {Promise<axios.AxiosResponse<any>>}
     */
    getWeeklyDeal() {
        return http.get('/admin/stat/weeklyDeal')
    },

    /**
     * 查询统计商品数据
     * @returns {Promise<axios.AxiosResponse<any>>}
     */
    getCountData() {
        return http.get('/admin/stat/countData')
    },
}
